#!/bin/bash
set -e

make

sudo cp build/xxx-ext4 deb/xxx-ext4/opt/xxx-ext4

cd deb
sudo chown root.root -R ./xxx-ext4
dpkg -b ./xxx-ext4 ./xxx-ext4_v0.1.0_amd64.deb
sudo chown jzc.jzc -R ./xxx-ext4